<template>
    <div class="sg-select-box">
        <el-select
            class="sg-load-select-popper"
            v-model="selectValue"
            :placeholder="placeholder"
            teleported
        ></el-select>
    </div>
</template>

<script lang="ts" setup name="SGLoadSelect">
import type { PropType } from 'vue';
import type { IComponentInfoType } from '@/types/component';

const props = defineProps({
    info: {
        required: true,
        type: Object as PropType<IComponentInfoType>,
        default: () => {}
    }
});

const placeholder = computed(() => {
    return props.info.placeholder || `请选择`;
});

const selectValue = defineModel();
</script>
